/*
 *  Copyright 2008-2010 www.jrails.org
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

package org.rails.core;


/**
 * 系统全局变量定义
 * @author jack
 *
 */
public final class GLOBAL {
	
	/**
	 * 系统默认的字符编码
	 */
	public static String RESOURCE_CHARSET_NAME = "UTF-8";
	
	/**
	 * 请求的字符编码
	 */
	public static String REQUEST_CHARSET_NAME = "UTF-8";
	
	/**
	 * 配置文件存放的目录
	 */
	public static String CONFIG_FOLDER = "config";
	
	/**
	 * I18N 资源文件存放的目录
	 */
	public static String LANGUAGE_FOLDER = "language";

	/**
	 * 默认资源文件名,位置language目录下
	 */
	public final static String SYSTEM_DEFAULT_LANGUAGE = "default";	
	
	/**
	 * AiveRecord 默认映射数据表的主键名称
	 */
	public final static String SYSTEM_DEFAULT_PRIMARY_KEY_NAME = "id";
	
	/**
	 * 默认数据源键名,位置config/db.properties
	 */
	public final static String SYSTEM_DEFAULT_DB = "System.db";
	
	/**
	 * 指定系统资源属性键名称,例如定义大多数表都有一个deleted字段,
	 * 则可定义为 System.deleted.type = Boolean 
	 */
	public final static String SYSTEM_DEFAULT_MODEL = "System";

}
